package com.lpf.chain;

// 具体处理器 - 处理一般问题
class GeneralSupportHandler extends Handler {
    @Override
    public void handleRequest(String request) {
        if (request.contains("general")) {
            System.out.println("GeneralSupportHandler: Handling general issue.");
        } else if (nextHandler != null) {
            nextHandler.handleRequest(request);
        } else {
            System.out.println("No handler found for the request.");
        }
    }
}
